/**
 * 
 */
package com.gome.axwl.aoc.service.feign.fallback;

import com.gome.axwl.aoc.service.feign.MasterDataFeignClient;
import com.gome.axwl.aoc.service.feign.PmsFeignClient;
import com.gome.commons.core.ErrorCode;
import com.gome.commons.core.ResultData;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**   
*    
* 项目名称：gome-axwl.op-service   
* 类名称：MasterDataFeignFallBack
* 类描述：   
* 创建人：chengh
* 创建时间：2018-4-25 09:50:47
* @version        
*/
@Component
public class PmsFeignFallBack implements PmsFeignClient {

	@Override
	public ResultData queryResourceByUserAndRole(String appKey, String userId) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用PMS接口{queryResourceByUserAndRole}服务有异常，请查看服务是否正常!");
	}

	@Override
	public ResultData isAuditUser(@RequestParam("accountNo")String accountNo) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用PMS接口{isAuditUser}服务有异常，请查看服务是否正常!");
	}

	@Override
	public ResultData getAuditUserList(@RequestParam("accountNo")String accountNo, @RequestParam("account")String account, @RequestParam("invitationCode")String invitationCode) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用PMS接口{getAuditUserList}服务有异常，请查看服务是否正常!");
	}
}
